package praktikumid.p07_e;

import java.io.Reader;

public class Main {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		//Vehicle v = new Vehicle();
		/*Vehicle v = new Vehicle();
		v.make = "Audi";
		v.model = "A3";
		
		System.out.println(v.getName());
		v.drive();
		v.printOut();
*/
		Car c = new Car("Lada", "GT");
		//c.make = "Lada";
		//c.model = "GT";
		c.seats = 5;
		c.wheels = 3;
		c.setPrice(100);
		System.out.println(c.getPrice());
		
		System.out.println(c.getName());
		c.drive();
		c.printOut();
		
		Bus b = new Bus();
		b.make = "ikarus";
		b.model = "3";
		b.seats = 40;
		b.wheels = 8;
		
		
		System.out.println(b.getName());
		b.drive();
		b.printOut();
		
		if (b instanceof Bus) {
			System.out.println("bus");
		}
		if (b instanceof Vehicle) {
			System.out.println("vehicle");			
		}
	}

}
